--------------------------------------------------------------------------------------------
       log:  d:\StayingAlive\data\basic_datasets\MajorTreaties\MajorTreatiesAnalysis.log
  log type:  text
 opened on:   1 Feb 2004, 16:08:49

. do "C:\DOCUME~1\JAMESM~1\LOCALS~1\Temp\STD00000000.tmp"

. insheet using Peacetrt.csv
(16 vars, 16 obs)

. gen policytotal = policy + regime

. gen percentpolicy = policytotal/(policytotal + private)

. 
. * The next line produces the left column of Table 9.3
. 
. regress percentpolicy year

      Source |       SS       df       MS              Number of obs =      16
-------------+------------------------------           F(  1,    14) =   14.65
       Model |  .501317382     1  .501317382           Prob > F      =  0.0018
    Residual |  .478922421    14  .034208744           R-squared     =  0.5114
-------------+------------------------------           Adj R-squared =  0.4765
       Total |  .980239803    15   .06534932           Root MSE      =  .18496

------------------------------------------------------------------------------
percentpol~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        year |   .0016649   .0004349     3.83   0.002     .0007321    .0025977
       _cons |  -2.439967   .8148083    -2.99   0.010    -4.187557   -.6923767
------------------------------------------------------------------------------

. predict resids, residuals

. list treaty year resids

     +--------------------------------------------+
     |                  treaty   year      resids |
     |--------------------------------------------|
  1. |              Westphalia   1648    .0940801 |
  2. |         Aix La Chapelle   1668    .0915043 |
  3. |                 Utrecht   1713    .2195918 |
  4. | 3rd Partition of Poland   1794   -.2611288 |
  5. |      1st Peace of Paris   1814    -.315435 |
     |--------------------------------------------|
  6. |               Frankfort   1871   -.1487237 |
  7. |         Treaty of Paris   1898   -.1644359 |
  8. |                  Athens   1913    .1171042 |
  9. |              Versailles   1919   -.0042123 |
 10. |                   Chaco   1938     .013413 |
     |--------------------------------------------|
 11. |                Japanese   1951   -.2082305 |
 12. |                  Korean   1953    .1884397 |
 13. |                  Geneva   1954    .1867748 |
 14. |                Austrian   1955   -.1306796 |
 15. |    Tashkent Declaration   1966    .1667961 |
     |--------------------------------------------|
 16. |         Paris (Vietnam)   1973    .1551419 |
     +--------------------------------------------+

. 
. * The next set of lines produce the right column of Table 9.3
. 
. gen total = policytotal + private

. regress percentpolicy year [aweight = total]
(sum of wgt is   7.1600e+02)

      Source |       SS       df       MS              Number of obs =      16
-------------+------------------------------           F(  1,    14) =   18.91
       Model |  .330384506     1  .330384506           Prob > F      =  0.0007
    Residual |  .244648668    14  .017474905           R-squared     =  0.5745
-------------+------------------------------           Adj R-squared =  0.5442
       Total |  .575033174    15  .038335545           Root MSE      =  .13219

------------------------------------------------------------------------------
percentpol~y |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        year |   .0013737   .0003159     4.35   0.001     .0006961    .0020513
       _cons |  -1.888838   .5914329    -3.19   0.007    -3.157335   -.6203402
------------------------------------------------------------------------------

. predict weightedresids, residuals

. list treaty year weightedresids

     +--------------------------------------------+
     |                  treaty   year   weighte~s |
     |--------------------------------------------|
  1. |              Westphalia   1648     .022853 |
  2. |         Aix La Chapelle   1668    .0261012 |
  3. |                 Utrecht   1713    .1672929 |
  4. | 3rd Partition of Poland   1794   -.2898403 |
  5. |      1st Peace of Paris   1814   -.3383224 |
     |--------------------------------------------|
  6. |               Frankfort   1871   -.1550126 |
  7. |         Treaty of Paris   1898   -.1628623 |
  8. |                  Athens   1913    .1230458 |
  9. |              Versailles   1919    .0034765 |
 10. |                   Chaco   1938    .0266347 |
     |--------------------------------------------|
 11. |                Japanese   1951   -.1912232 |
 12. |                  Korean   1953    .2060294 |
 13. |                  Geneva   1954    .2046557 |
 14. |                Austrian   1955   -.1125074 |
 15. |    Tashkent Declaration   1966    .1881715 |
     |--------------------------------------------|
 16. |         Paris (Vietnam)   1973    .1785557 |
     +--------------------------------------------+

. 
. clear

. exit

end of do-file

. log close
       log:  d:\StayingAlive\data\basic_datasets\MajorTreaties\MajorTreatiesAnalysis.log
  log type:  text
 closed on:   1 Feb 2004, 16:09:41
--------------------------------------------------------------------------------------------
